﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Server.Data
{
    /// <summary>
    /// The Player object
    /// </summary>

    public class Player
    {
        private String _nickName;
        private String _ip;
        private Int32 _port;
        private Boolean _ready;
        private Int32 _table;

        public Player()
        {
            _nickName = "Player";
            _ready = false;
            _table = -1;
        }

        /// <summary>
        /// Sets or gets the nickname of the player
        /// </summary>        
        public String NickName
        {
            get
            {
                return _nickName;
            }
            set
            {
                _nickName = value;
            }
        }

        /// <summary>
        /// Sets or gets the ip of the player
        /// </summary>        
        public String Ip
        {
            get
            {
                return _ip;
            }
            set
            {
                _ip = value;
            }
        }

        /// <summary>
        /// Sets or gets the port of the player
        /// </summary>       
        public Int32 Port
        {
            get
            {
                return _port;
            }
            set
            {
                _port = value;
            }

        }

        /// <summary>
        /// Sets or gets the ready state of the player
        /// </summary>
        public Boolean IsReady
        {
            get
            {
                return _ready;
            }
            set
            {
                _ready = value;
            }

        }

        /// <summary>
        /// Sets or gets table id of a player
        /// </summary>
        public Int32 TableId
        {
            get
            {
                return _table;
            }
            set
            {
                _table = value;
            }
        }
    }
}
